﻿using SqlSugar;
using static DataModels.Enums.GeneralEnum;

namespace DataModels.Entities.ServiceDay
{
    /// <summary>
    /// 积分活动表
    /// </summary>
    [SugarTable]
    public class ServiceDayPointsActivities
    {
        [SugarColumn(IsPrimaryKey = true)]
        public Guid UUID { get; set; } = Guid.NewGuid();

        /// <summary>
        /// 活动标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 活动标题介绍
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 活动分数
        /// </summary>
        public int Points { get; set; }

        /// <summary>
        /// 每人限制参与次数
        /// </summary>
        public int LimitParticipationCount { get; set; } = 1;


        /// <summary>
        /// 总限制参与次数
        /// </summary>
        public int? TotalParticipationCount { get; set; }

        /// <summary>
        /// 活动结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public Status Status { get; set; } = Status.Enable;

        public Status IsDeleted { get; set; } = Status.Disable;

        public DateTime CreateTime { get; set; } = DateTime.Now;

        public Guid CreateUserUUID { get; set; }

        public DateTime? UpdateTime { get; set; }

        public Guid? UpdateUserUUID { get; set; }
    }
}
